package com.zsxj.xixi.service.tag;

import com.zsxj.xixi.common.validation.CreateAction;
import com.zsxj.xixi.common.validation.Phone;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @Description
 * @Author mengweibin
 * @Date 2021-07-07 14:08
 */
@Data
@ApiModel("查询入参")
public class queryParam {

    @NotNull
    @ApiModelProperty(value = "商户id")
    private Long merchantId;

    @NotEmpty
    @ApiModelProperty(value = "货品名称")
    private String spuName;

    @Min(value = 5)
    private Integer num;

    @Phone(groups = CreateAction.class)
    private String phone;
}
